from langserve import RemoteRunnable

if __name__ == '__main__':
    client = RemoteRunnable("http://127.0.0.1:8000/chat")
    res = client.invoke({"lang": "英语", "text": "白日依山尽，黄河入海流。"})
    print(res)